package test;

import com.itqf.service.ProductService;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2020/9/30
 * @Time: 下午4:02
 */
public class SpringAspectJAop {

    @Test
    public  void  test(){
        ApplicationContext a = new ClassPathXmlApplicationContext("applicationContext-aspectj-aop.xml");

        ProductService productService =(ProductService) a.getBean("productService");

        productService.add();



    }

}
